import os

import yaml
from autoTest_ecshop.utils.get_path import get_datasFile_path


# 读取yaml文件内容
def read_yaml(filename):
    path = get_datasFile_path(filename)
    with open(path, 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)


if __name__ == '__main__':
    res = read_yaml('login_data.yaml')
    print(res)
